package com.cloud.model.user;

import lombok.Data;

@Data
public class GiteeUserInfo {
        /**
         * uuid : 1625063
         * username : yjiawei
         * nickname : 人生如梦，醉酒相陪
         * avatar : https://gitee.com/assets/no_portrait.png
         * blog : null
         * company : null
         * location : null
         * email : null
         * remark :
         * gender : UNKNOWN
         * source : GITEE
         * token : {"accessToken":"5d6baed411cc207ff10aad9256bb896e","expireIn":86400,"refreshToken":"0f34719c2de347d5b7860b9bab7e5c3ee730ada5ba1dcc7d421381c22cc33332","uid":null,"openId":null,"accessCode":null,"unionId":null,"scope":"user_info","tokenType":"bearer","idToken":null,"macAlgorithm":null,"macKey":null,"code":null,"oauthToken":null,"oauthTokenSecret":null,"userId":null,"screenName":null,"oauthCallbackConfirmed":null}
         */

        private String uuid;
        private String username;
        private String nickname;
        private String avatar;
        private Object blog;
        private Object company;
        private Object location;
        private Object email;
        private String remark;
        private String gender;
        private String source;
        private TokenBean token;

        @Data
        public static class TokenBean {
            /**
             * accessToken : 5d6baed411cc207ff10aad9256bb896e
             * expireIn : 86400
             * refreshToken : 0f34719c2de347d5b7860b9bab7e5c3ee730ada5ba1dcc7d421381c22cc33332
             * uid : null
             * openId : null
             * accessCode : null
             * unionId : null
             * scope : user_info
             * tokenType : bearer
             * idToken : null
             * macAlgorithm : null
             * macKey : null
             * code : null
             * oauthToken : null
             * oauthTokenSecret : null
             * userId : null
             * screenName : null
             * oauthCallbackConfirmed : null
             */

            private String accessToken;
            private int expireIn;
            private String refreshToken;
            private Object uid;
            private Object openId;
            private Object accessCode;
            private Object unionId;
            private String scope;
            private String tokenType;
            private Object idToken;
            private Object macAlgorithm;
            private Object macKey;
            private Object code;
            private Object oauthToken;
            private Object oauthTokenSecret;
            private Object userId;
            private Object screenName;
            private Object oauthCallbackConfirmed;
    }
}
